package com.gqyin.demo.annotation;

import org.springframework.boot.logging.LogLevel;

import java.lang.annotation.*;

/**
 * @author guiqing.yin
 * 2024-04-09 14:54
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Loggable {
    /**
     * 日志级别，默认 {@link org.springframework.boot.logging.LogLevel#INFO}
     */
    LogLevel level() default LogLevel.INFO;
}
